<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &gt;= 702
</span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-cpp">#if __GLASGOW_HASKELL__ &gt;= 710
</span><span class="hs-pragma">{-# LANGUAGE AutoDeriveTypeable #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- Module      :  Control.Applicative.Lift</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- Copyright   :  (c) Ross Paterson 2010</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- License     :  BSD-style (see the file LICENSE)</span><span>
</span><span id="line-13"></span><span class="hs-comment">--</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Maintainer  :  R.Paterson@city.ac.uk</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- Stability   :  experimental</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- Adding a new kind of pure computation to an applicative functor.</span><span>
</span><span id="line-19"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Control.Applicative.Lift</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-22"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Lifting an applicative</span></span><span>
</span><span id="line-23"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier">Lift</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-24"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#unLift"><span class="hs-identifier">unLift</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-25"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#mapLift"><span class="hs-identifier">mapLift</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-26"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#elimLift"><span class="hs-identifier">elimLift</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-27"></span><span>    </span><span class="annot"><span class="hs-comment">-- * Collecting errors</span></span><span>
</span><span id="line-28"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Errors"><span class="hs-identifier">Errors</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-29"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#runErrors"><span class="hs-identifier">runErrors</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-30"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#failure"><span class="hs-identifier">failure</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-31"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#eitherToErrors"><span class="hs-identifier">eitherToErrors</span></a></span><span>
</span><span id="line-32"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-33"></span><span>
</span><span id="line-34"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#"><span class="hs-identifier">Data.Functor.Classes</span></a></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Control.Applicative.html#"><span class="hs-identifier">Control.Applicative</span></a></span><span>
</span><span id="line-37"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Foldable.html#"><span class="hs-identifier">Data.Foldable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Foldable.html#Foldable"><span class="hs-identifier">Foldable</span></a></span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Foldable.html#foldMap"><span class="hs-identifier">foldMap</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-38"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Functor.Constant.html"><span class="hs-identifier">Data.Functor.Constant</span></a></span><span>
</span><span id="line-39"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Monoid.html#"><span class="hs-identifier">Data.Monoid</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#Monoid"><span class="hs-identifier">Monoid</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-40"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Traversable.html#"><span class="hs-identifier">Data.Traversable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Traversable.html#Traversable"><span class="hs-identifier">Traversable</span></a></span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Traversable.html#traverse"><span class="hs-identifier">traverse</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="hs-comment">-- | Applicative functor formed by adding pure computations to a given</span><span>
</span><span id="line-43"></span><span class="hs-comment">-- applicative functor.</span><span>
</span><span id="line-44"></span><span class="hs-keyword">data</span><span> </span><span id="Lift"><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-var">Lift</span></a></span></span><span> </span><span id="local-6989586621679086191"><span class="annot"><a href="#local-6989586621679086191"><span class="hs-identifier hs-type">f</span></a></span></span><span> </span><span id="local-6989586621679086192"><span class="annot"><a href="#local-6989586621679086192"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="Pure"><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span></span><span> </span><span class="annot"><a href="#local-6989586621679086192"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">|</span><span> </span><span id="Other"><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679086191"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086192"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span id="local-6989586621679086220"><span class="hs-keyword">instance</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Eq1"><span class="hs-identifier hs-type">Eq1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086220"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Eq1"><span class="hs-identifier hs-type">Eq1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086220"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-47"></span><span>    </span><span id="local-6989586621679085944"><span class="annot"><span class="annottext">liftEq :: forall a b. (a -&gt; b -&gt; Bool) -&gt; Lift f a -&gt; Lift f b -&gt; Bool
</span><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-identifier hs-var hs-var hs-var hs-var">liftEq</span></a></span></span><span> </span><span id="local-6989586621679085942"><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><a href="#local-6989586621679085942"><span class="hs-identifier hs-var">eq</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085941"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085941"><span class="hs-identifier hs-var">x1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085940"><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621679085940"><span class="hs-identifier hs-var">x2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><a href="#local-6989586621679085942"><span class="hs-identifier hs-var">eq</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085941"><span class="hs-identifier hs-var">x1</span></a></span><span> </span><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621679085940"><span class="hs-identifier hs-var">x2</span></a></span><span>
</span><span id="line-48"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-identifier hs-var">liftEq</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f b
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-49"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-identifier hs-var">liftEq</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">b
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-50"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-identifier hs-var">liftEq</span></a></span><span> </span><span id="local-6989586621679085939"><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><a href="#local-6989586621679085939"><span class="hs-identifier hs-var">eq</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085938"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085938"><span class="hs-identifier hs-var">y1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085937"><span class="annot"><span class="annottext">f b
</span><a href="#local-6989586621679085937"><span class="hs-identifier hs-var">y2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; b -&gt; Bool) -&gt; f a -&gt; f b -&gt; Bool
forall (f :: * -&gt; *) a b.
Eq1 f =&gt;
(a -&gt; b -&gt; Bool) -&gt; f a -&gt; f b -&gt; Bool
</span><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-identifier hs-var">liftEq</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Bool
</span><a href="#local-6989586621679085939"><span class="hs-identifier hs-var">eq</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085938"><span class="hs-identifier hs-var">y1</span></a></span><span> </span><span class="annot"><span class="annottext">f b
</span><a href="#local-6989586621679085937"><span class="hs-identifier hs-var">y2</span></a></span><span>
</span><span id="line-51"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftEq"><span class="hs-pragma hs-type">liftEq</span></a></span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-52"></span><span>
</span><span id="line-53"></span><span id="local-6989586621679086213"><span class="hs-keyword">instance</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Ord1"><span class="hs-identifier hs-type">Ord1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086213"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Ord1"><span class="hs-identifier hs-type">Ord1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086213"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-54"></span><span>    </span><span id="local-6989586621679085928"><span class="annot"><span class="annottext">liftCompare :: forall a b.
(a -&gt; b -&gt; Ordering) -&gt; Lift f a -&gt; Lift f b -&gt; Ordering
</span><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-identifier hs-var hs-var hs-var hs-var">liftCompare</span></a></span></span><span> </span><span id="local-6989586621679085926"><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><a href="#local-6989586621679085926"><span class="hs-identifier hs-var">comp</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085925"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085925"><span class="hs-identifier hs-var">x1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085924"><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621679085924"><span class="hs-identifier hs-var">x2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><a href="#local-6989586621679085926"><span class="hs-identifier hs-var">comp</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085925"><span class="hs-identifier hs-var">x1</span></a></span><span> </span><span class="annot"><span class="annottext">b
</span><a href="#local-6989586621679085924"><span class="hs-identifier hs-var">x2</span></a></span><span>
</span><span id="line-55"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-identifier hs-var">liftCompare</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f b
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">LT</span></span><span>
</span><span id="line-56"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-identifier hs-var">liftCompare</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">b
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">GT</span></span><span>
</span><span id="line-57"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-identifier hs-var">liftCompare</span></a></span><span> </span><span id="local-6989586621679085923"><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><a href="#local-6989586621679085923"><span class="hs-identifier hs-var">comp</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085922"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085922"><span class="hs-identifier hs-var">y1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085921"><span class="annot"><span class="annottext">f b
</span><a href="#local-6989586621679085921"><span class="hs-identifier hs-var">y2</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; b -&gt; Ordering) -&gt; f a -&gt; f b -&gt; Ordering
forall (f :: * -&gt; *) a b.
Ord1 f =&gt;
(a -&gt; b -&gt; Ordering) -&gt; f a -&gt; f b -&gt; Ordering
</span><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-identifier hs-var">liftCompare</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; Ordering
</span><a href="#local-6989586621679085923"><span class="hs-identifier hs-var">comp</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085922"><span class="hs-identifier hs-var">y1</span></a></span><span> </span><span class="annot"><span class="annottext">f b
</span><a href="#local-6989586621679085921"><span class="hs-identifier hs-var">y2</span></a></span><span>
</span><span id="line-58"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftCompare"><span class="hs-pragma hs-type">liftCompare</span></a></span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span id="local-6989586621679086203"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085914"><span id="local-6989586621679085916"><span id="local-6989586621679085918"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Read1"><span class="hs-identifier hs-type">Read1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086203"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Read1"><span class="hs-identifier hs-type">Read1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086203"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-61"></span><span>    </span><span id="local-6989586621679085906"><span class="annot"><span class="annottext">liftReadsPrec :: forall a. (Int -&gt; ReadS a) -&gt; ReadS [a] -&gt; Int -&gt; ReadS (Lift f a)
</span><a href="../../base/src/Data.Functor.Classes.html#liftReadsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">liftReadsPrec</span></a></span></span><span> </span><span id="local-6989586621679085904"><span class="annot"><span class="annottext">Int -&gt; ReadS a
</span><a href="#local-6989586621679085904"><span class="hs-identifier hs-var">rp</span></a></span></span><span> </span><span id="local-6989586621679085903"><span class="annot"><span class="annottext">ReadS [a]
</span><a href="#local-6989586621679085903"><span class="hs-identifier hs-var">rl</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(String -&gt; ReadS (Lift f a)) -&gt; Int -&gt; ReadS (Lift f a)
forall a. (String -&gt; ReadS a) -&gt; Int -&gt; ReadS a
</span><a href="../../base/src/Data.Functor.Classes.html#readsData"><span class="hs-identifier hs-var">readsData</span></a></span><span> </span><span class="annot"><span class="annottext">((String -&gt; ReadS (Lift f a)) -&gt; Int -&gt; ReadS (Lift f a))
-&gt; (String -&gt; ReadS (Lift f a)) -&gt; Int -&gt; ReadS (Lift f a)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span>
</span><span id="line-62"></span><span>        </span><span class="annot"><span class="annottext">(Int -&gt; ReadS a)
-&gt; String -&gt; (a -&gt; Lift f a) -&gt; String -&gt; ReadS (Lift f a)
forall a t.
(Int -&gt; ReadS a) -&gt; String -&gt; (a -&gt; t) -&gt; String -&gt; ReadS t
</span><a href="../../base/src/Data.Functor.Classes.html#readsUnaryWith"><span class="hs-identifier hs-var">readsUnaryWith</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS a
</span><a href="#local-6989586621679085904"><span class="hs-identifier hs-var">rp</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Pure&quot;</span></span><span> </span><span class="annot"><span class="annottext">a -&gt; Lift f a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; ReadS (Lift f a))
-&gt; (String -&gt; ReadS (Lift f a)) -&gt; String -&gt; ReadS (Lift f a)
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span>
</span><span id="line-63"></span><span>        </span><span class="annot"><span class="annottext">(Int -&gt; ReadS (f a))
-&gt; String -&gt; (f a -&gt; Lift f a) -&gt; String -&gt; ReadS (Lift f a)
forall a t.
(Int -&gt; ReadS a) -&gt; String -&gt; (a -&gt; t) -&gt; String -&gt; ReadS t
</span><a href="../../base/src/Data.Functor.Classes.html#readsUnaryWith"><span class="hs-identifier hs-var">readsUnaryWith</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(Int -&gt; ReadS a) -&gt; ReadS [a] -&gt; Int -&gt; ReadS (f a)
forall (f :: * -&gt; *) a.
Read1 f =&gt;
(Int -&gt; ReadS a) -&gt; ReadS [a] -&gt; Int -&gt; ReadS (f a)
</span><a href="../../base/src/Data.Functor.Classes.html#liftReadsPrec"><span class="hs-identifier hs-var">liftReadsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS a
</span><a href="#local-6989586621679085904"><span class="hs-identifier hs-var">rp</span></a></span><span> </span><span class="annot"><span class="annottext">ReadS [a]
</span><a href="#local-6989586621679085903"><span class="hs-identifier hs-var">rl</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Other&quot;</span></span><span> </span><span class="annot"><span class="annottext">f a -&gt; Lift f a
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span></span><span>
</span><span id="line-64"></span><span>
</span><span id="line-65"></span><span id="local-6989586621679086185"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085898"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Show1"><span class="hs-identifier hs-type">Show1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086185"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Show1"><span class="hs-identifier hs-type">Show1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086185"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-66"></span><span>    </span><span id="local-6989586621679085895"><span class="annot"><span class="annottext">liftShowsPrec :: forall a.
(Int -&gt; a -&gt; ShowS) -&gt; ([a] -&gt; ShowS) -&gt; Int -&gt; Lift f a -&gt; ShowS
</span><a href="../../base/src/Data.Functor.Classes.html#liftShowsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">liftShowsPrec</span></a></span></span><span> </span><span id="local-6989586621679085893"><span class="annot"><span class="annottext">Int -&gt; a -&gt; ShowS
</span><a href="#local-6989586621679085893"><span class="hs-identifier hs-var">sp</span></a></span></span><span> </span><span class="annot"><span class="annottext">[a] -&gt; ShowS
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679085892"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679085892"><span class="hs-identifier hs-var">d</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085891"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085891"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Int -&gt; a -&gt; ShowS) -&gt; String -&gt; Int -&gt; a -&gt; ShowS
forall a. (Int -&gt; a -&gt; ShowS) -&gt; String -&gt; Int -&gt; a -&gt; ShowS
</span><a href="../../base/src/Data.Functor.Classes.html#showsUnaryWith"><span class="hs-identifier hs-var">showsUnaryWith</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; a -&gt; ShowS
</span><a href="#local-6989586621679085893"><span class="hs-identifier hs-var">sp</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Pure&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679085892"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085891"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-67"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#liftShowsPrec"><span class="hs-identifier hs-var">liftShowsPrec</span></a></span><span> </span><span id="local-6989586621679085889"><span class="annot"><span class="annottext">Int -&gt; a -&gt; ShowS
</span><a href="#local-6989586621679085889"><span class="hs-identifier hs-var">sp</span></a></span></span><span> </span><span id="local-6989586621679085888"><span class="annot"><span class="annottext">[a] -&gt; ShowS
</span><a href="#local-6989586621679085888"><span class="hs-identifier hs-var">sl</span></a></span></span><span> </span><span id="local-6989586621679085887"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679085887"><span class="hs-identifier hs-var">d</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085886"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085886"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-68"></span><span>        </span><span class="annot"><span class="annottext">(Int -&gt; f a -&gt; ShowS) -&gt; String -&gt; Int -&gt; f a -&gt; ShowS
forall a. (Int -&gt; a -&gt; ShowS) -&gt; String -&gt; Int -&gt; a -&gt; ShowS
</span><a href="../../base/src/Data.Functor.Classes.html#showsUnaryWith"><span class="hs-identifier hs-var">showsUnaryWith</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(Int -&gt; a -&gt; ShowS) -&gt; ([a] -&gt; ShowS) -&gt; Int -&gt; f a -&gt; ShowS
forall (f :: * -&gt; *) a.
Show1 f =&gt;
(Int -&gt; a -&gt; ShowS) -&gt; ([a] -&gt; ShowS) -&gt; Int -&gt; f a -&gt; ShowS
</span><a href="../../base/src/Data.Functor.Classes.html#liftShowsPrec"><span class="hs-identifier hs-var">liftShowsPrec</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; a -&gt; ShowS
</span><a href="#local-6989586621679085889"><span class="hs-identifier hs-var">sp</span></a></span><span> </span><span class="annot"><span class="annottext">[a] -&gt; ShowS
</span><a href="#local-6989586621679085888"><span class="hs-identifier hs-var">sl</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;Other&quot;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679085887"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085886"><span class="hs-identifier hs-var">y</span></a></span></span><span>
</span><span id="line-69"></span><span>
</span><span id="line-70"></span><span id="local-6989586621679086180"><span id="local-6989586621679086181"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085883"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Eq1"><span class="hs-identifier hs-type">Eq1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086181"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="#local-6989586621679086180"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086181"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086180"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679085879"><span class="annot"><span class="annottext">== :: Lift f a -&gt; Lift f a -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">(==)</span></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Lift f a -&gt; Lift f a -&gt; Bool
forall (f :: * -&gt; *) a. (Eq1 f, Eq a) =&gt; f a -&gt; f a -&gt; Bool
</span><a href="../../base/src/Data.Functor.Classes.html#eq1"><span class="hs-identifier hs-var">eq1</span></a></span></span></span><span>
</span><span id="line-71"></span><span id="local-6989586621679086175"><span id="local-6989586621679086176"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085863"><span id="local-6989586621679085865"><span id="local-6989586621679085867"><span id="local-6989586621679085869"><span id="local-6989586621679085871"><span id="local-6989586621679085873"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Ord1"><span class="hs-identifier hs-type">Ord1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086176"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="annot"><a href="#local-6989586621679086175"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086176"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086175"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679085859"><span class="annot"><span class="annottext">compare :: Lift f a -&gt; Lift f a -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var">compare</span></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Lift f a -&gt; Lift f a -&gt; Ordering
forall (f :: * -&gt; *) a. (Ord1 f, Ord a) =&gt; f a -&gt; f a -&gt; Ordering
</span><a href="../../base/src/Data.Functor.Classes.html#compare1"><span class="hs-identifier hs-var">compare1</span></a></span></span></span><span>
</span><span id="line-72"></span><span id="local-6989586621679086170"><span id="local-6989586621679086171"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085850"><span id="local-6989586621679085852"><span id="local-6989586621679085854"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Read1"><span class="hs-identifier hs-type">Read1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086171"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086170"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086171"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086170"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span></span></span></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679085846"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS (Lift f a)
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ReadS (Lift f a)
forall (f :: * -&gt; *) a. (Read1 f, Read a) =&gt; Int -&gt; ReadS (f a)
</span><a href="../../base/src/Data.Functor.Classes.html#readsPrec1"><span class="hs-identifier hs-var">readsPrec1</span></a></span></span></span><span>
</span><span id="line-73"></span><span id="local-6989586621679086165"><span id="local-6989586621679086166"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085839"><span id="local-6989586621679085841"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Functor.Classes.html#Show1"><span class="hs-identifier hs-type">Show1</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086166"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086165"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086166"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086165"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span></span></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679085835"><span class="annot"><span class="annottext">showsPrec :: Int -&gt; Lift f a -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">showsPrec</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Lift f a -&gt; ShowS
forall (f :: * -&gt; *) a. (Show1 f, Show a) =&gt; Int -&gt; f a -&gt; ShowS
</span><a href="../../base/src/Data.Functor.Classes.html#showsPrec1"><span class="hs-identifier hs-var">showsPrec1</span></a></span></span></span><span>
</span><span id="line-74"></span><span>
</span><span id="line-75"></span><span id="local-6989586621679086157"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085830"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#Functor"><span class="hs-identifier hs-type">Functor</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086157"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#Functor"><span class="hs-identifier hs-type">Functor</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086157"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-76"></span><span>    </span><span id="local-6989586621679085827"><span class="annot"><span class="annottext">fmap :: forall a b. (a -&gt; b) -&gt; Lift f a -&gt; Lift f b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var hs-var hs-var hs-var">fmap</span></a></span></span><span> </span><span id="local-6989586621679085826"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085826"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085825"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085825"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">b -&gt; Lift f b
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085826"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085825"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-77"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span id="local-6989586621679085824"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085824"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085823"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085823"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f b -&gt; Lift f b
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(a -&gt; b) -&gt; f a -&gt; f b
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var">fmap</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085824"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085823"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-78"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-pragma hs-type">fmap</span></a></span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-79"></span><span>
</span><span id="line-80"></span><span id="local-6989586621679086139"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085790"><span id="local-6989586621679085792"><span id="local-6989586621679085794"><span id="local-6989586621679085796"><span id="local-6989586621679085798"><span id="local-6989586621679085800"><span id="local-6989586621679085802"><span id="local-6989586621679085804"><span id="local-6989586621679085806"><span id="local-6989586621679085808"><span id="local-6989586621679085810"><span id="local-6989586621679085812"><span id="local-6989586621679085814"><span id="local-6989586621679085816"><span id="local-6989586621679085818"><span id="local-6989586621679085821"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Foldable.html#Foldable"><span class="hs-identifier hs-type">Foldable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086139"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Foldable.html#Foldable"><span class="hs-identifier hs-type">Foldable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086139"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-81"></span><span>    </span><span id="local-6989586621679085785"><span class="annot"><span class="annottext">foldMap :: forall m a. Monoid m =&gt; (a -&gt; m) -&gt; Lift f a -&gt; m
</span><a href="#local-6989586621679085785"><span class="hs-identifier hs-var hs-var hs-var hs-var">foldMap</span></a></span></span><span> </span><span id="local-6989586621679085784"><span class="annot"><span class="annottext">a -&gt; m
</span><a href="#local-6989586621679085784"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085783"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085783"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; m
</span><a href="#local-6989586621679085784"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085783"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-82"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Foldable.html#foldMap"><span class="hs-identifier hs-var">foldMap</span></a></span><span> </span><span id="local-6989586621679085782"><span class="annot"><span class="annottext">a -&gt; m
</span><a href="#local-6989586621679085782"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085781"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085781"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; m) -&gt; f a -&gt; m
forall (t :: * -&gt; *) m a.
(Foldable t, Monoid m) =&gt;
(a -&gt; m) -&gt; t a -&gt; m
</span><a href="../../base/src/Data.Foldable.html#foldMap"><span class="hs-identifier hs-var">foldMap</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; m
</span><a href="#local-6989586621679085782"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085781"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-83"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/Data.Foldable.html#foldMap"><span class="hs-pragma hs-type">foldMap</span></a></span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span id="local-6989586621679086125"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085770"><span id="local-6989586621679085772"><span id="local-6989586621679085774"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Traversable.html#Traversable"><span class="hs-identifier hs-type">Traversable</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086125"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Traversable.html#Traversable"><span class="hs-identifier hs-type">Traversable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086125"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-86"></span><span>    </span><span id="local-6989586621679085762"><span class="annot"><span class="annottext">traverse :: forall (f :: * -&gt; *) a b.
Applicative f =&gt;
(a -&gt; f b) -&gt; Lift f a -&gt; f (Lift f b)
</span><a href="#local-6989586621679085762"><span class="hs-identifier hs-var hs-var hs-var hs-var">traverse</span></a></span></span><span> </span><span id="local-6989586621679085761"><span class="annot"><span class="annottext">a -&gt; f b
</span><a href="#local-6989586621679085761"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085760"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085760"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">b -&gt; Lift f b
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">(b -&gt; Lift f b) -&gt; f b -&gt; f (Lift f b)
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; f b
</span><a href="#local-6989586621679085761"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085760"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-87"></span><span>    </span><span class="annot"><a href="../../base/src/Data.Traversable.html#traverse"><span class="hs-identifier hs-var">traverse</span></a></span><span> </span><span id="local-6989586621679085758"><span class="annot"><span class="annottext">a -&gt; f b
</span><a href="#local-6989586621679085758"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085757"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085757"><span class="hs-identifier hs-var">y</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f b -&gt; Lift f b
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="annot"><span class="annottext">(f b -&gt; Lift f b) -&gt; f (f b) -&gt; f (Lift f b)
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; f b) -&gt; f a -&gt; f (f b)
forall (t :: * -&gt; *) (f :: * -&gt; *) a b.
(Traversable t, Applicative f) =&gt;
(a -&gt; f b) -&gt; t a -&gt; f (t b)
</span><a href="../../base/src/Data.Traversable.html#traverse"><span class="hs-identifier hs-var">traverse</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; f b
</span><a href="#local-6989586621679085758"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085757"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-88"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/Data.Traversable.html#traverse"><span class="hs-pragma hs-type">traverse</span></a></span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span class="hs-comment">-- | A combination is 'Pure' only if both parts are.</span><span>
</span><span id="line-91"></span><span id="local-6989586621679086107"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085747"><span id="local-6989586621679085749"><span id="local-6989586621679085751"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#Applicative"><span class="hs-identifier hs-type">Applicative</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086107"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#Applicative"><span class="hs-identifier hs-type">Applicative</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086107"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-92"></span><span>    </span><span id="local-6989586621679085745"><span class="annot"><span class="annottext">pure :: forall a. a -&gt; Lift f a
</span><a href="../../base/src/GHC.Base.html#pure"><span class="hs-identifier hs-var hs-var hs-var hs-var">pure</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Lift f a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span>
</span><span id="line-93"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#pure"><span class="hs-pragma hs-type">pure</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-94"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085741"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085741"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621679085740"><span class="annot"><span class="annottext">&lt;*&gt; :: forall a b. Lift f (a -&gt; b) -&gt; Lift f a -&gt; Lift f b
</span><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">&lt;*&gt;</span></a></span></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085739"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085739"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">b -&gt; Lift f b
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085741"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085739"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-95"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085738"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085738"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var">&lt;*&gt;</span></a></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085737"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085737"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f b -&gt; Lift f b
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679085738"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">(a -&gt; b) -&gt; f a -&gt; f b
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085737"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-96"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085736"><span class="annot"><span class="annottext">f (a -&gt; b)
</span><a href="#local-6989586621679085736"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var">&lt;*&gt;</span></a></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085735"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085735"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f b -&gt; Lift f b
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">(a -&gt; b) -&gt; a -&gt; b
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085735"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">((a -&gt; b) -&gt; b) -&gt; f (a -&gt; b) -&gt; f b
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">f (a -&gt; b)
</span><a href="#local-6989586621679085736"><span class="hs-identifier hs-var">f</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-97"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085734"><span class="annot"><span class="annottext">f (a -&gt; b)
</span><a href="#local-6989586621679085734"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var">&lt;*&gt;</span></a></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085733"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085733"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f b -&gt; Lift f b
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">f (a -&gt; b)
</span><a href="#local-6989586621679085734"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">f (a -&gt; b) -&gt; f a -&gt; f b
forall (f :: * -&gt; *) a b. Applicative f =&gt; f (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/GHC.Base.html#%3C%2A%3E"><span class="hs-operator hs-var">&lt;*&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085733"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-98"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">&lt;*&gt;</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span class="hs-comment">-- | A combination is 'Pure' only either part is.</span><span>
</span><span id="line-101"></span><span id="local-6989586621679086099"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679085725"><span id="local-6989586621679085727"><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#Alternative"><span class="hs-identifier hs-type">Alternative</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086099"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#Alternative"><span class="hs-identifier hs-type">Alternative</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086099"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-102"></span><span>    </span><span id="local-6989586621679085722"><span class="annot"><span class="annottext">empty :: forall a. Lift f a
</span><a href="../../base/src/GHC.Base.html#empty"><span class="hs-identifier hs-var hs-var hs-var hs-var">empty</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f a -&gt; Lift f a
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f a
forall (f :: * -&gt; *) a. Alternative f =&gt; f a
</span><a href="../../base/src/GHC.Base.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-103"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#empty"><span class="hs-pragma hs-type">empty</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-104"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085719"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085719"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621679085718"><span class="annot"><span class="annottext">&lt;|&gt; :: forall a. Lift f a -&gt; Lift f a -&gt; Lift f a
</span><a href="../../base/src/GHC.Base.html#%3C%7C%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">&lt;|&gt;</span></a></span></span><span> </span><span class="annot"><span class="annottext">Lift f a
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Lift f a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085719"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-105"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><span class="hs-identifier">_</span></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#%3C%7C%3E"><span class="hs-operator hs-var">&lt;|&gt;</span></a></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085716"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085716"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Lift f a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085716"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-106"></span><span>    </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085715"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085715"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#%3C%7C%3E"><span class="hs-operator hs-var">&lt;|&gt;</span></a></span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085714"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085714"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f a -&gt; Lift f a
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085715"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">f a -&gt; f a -&gt; f a
forall (f :: * -&gt; *) a. Alternative f =&gt; f a -&gt; f a -&gt; f a
</span><a href="../../base/src/GHC.Base.html#%3C%7C%3E"><span class="hs-operator hs-var">&lt;|&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085714"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-107"></span><span>    </span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="hs-pragma">(</span><span class="hs-pragma">&lt;|&gt;</span><span class="hs-pragma">)</span><span> </span><span class="hs-pragma">#-}</span></span><span>
</span><span id="line-108"></span><span>
</span><span id="line-109"></span><span class="hs-comment">-- | Projection to the other functor.</span><span>
</span><span id="line-110"></span><span id="local-6989586621679086095"><span id="local-6989586621679086096"><span class="annot"><a href="Control.Applicative.Lift.html#unLift"><span class="hs-identifier hs-type">unLift</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#Applicative"><span class="hs-identifier hs-type">Applicative</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086096"><span class="hs-identifier hs-type">f</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086096"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086095"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679086096"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086095"><span class="hs-identifier hs-type">a</span></a></span></span></span><span>
</span><span id="line-111"></span><span id="unLift"><span class="annot"><span class="annottext">unLift :: forall (f :: * -&gt; *) a. Applicative f =&gt; Lift f a -&gt; f a
</span><a href="Control.Applicative.Lift.html#unLift"><span class="hs-identifier hs-var hs-var">unLift</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085711"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085711"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; f a
forall (f :: * -&gt; *) a. Applicative f =&gt; a -&gt; f a
</span><a href="../../base/src/GHC.Base.html#pure"><span class="hs-identifier hs-var">pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085711"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-112"></span><span class="annot"><a href="Control.Applicative.Lift.html#unLift"><span class="hs-identifier hs-var">unLift</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085710"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085710"><span class="hs-identifier hs-var">e</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085710"><span class="hs-identifier hs-var">e</span></a></span><span>
</span><span id="line-113"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#unLift"><span class="hs-pragma hs-type">unLift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span class="hs-comment">-- | Apply a transformation to the other computation.</span><span>
</span><span id="line-116"></span><span id="local-6989586621679086090"><span id="local-6989586621679086091"><span id="local-6989586621679086092"><span class="annot"><a href="Control.Applicative.Lift.html#mapLift"><span class="hs-identifier hs-type">mapLift</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679086092"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086091"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679086090"><span class="hs-identifier hs-type">g</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086091"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086092"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086091"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086090"><span class="hs-identifier hs-type">g</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086091"><span class="hs-identifier hs-type">a</span></a></span></span></span></span><span>
</span><span id="line-117"></span><span id="mapLift"><span class="annot"><span class="annottext">mapLift :: forall (f :: * -&gt; *) a (g :: * -&gt; *).
(f a -&gt; g a) -&gt; Lift f a -&gt; Lift g a
</span><a href="Control.Applicative.Lift.html#mapLift"><span class="hs-identifier hs-var hs-var">mapLift</span></a></span></span><span> </span><span class="annot"><span class="annottext">f a -&gt; g a
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085709"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085709"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Lift g a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085709"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-118"></span><span class="annot"><a href="Control.Applicative.Lift.html#mapLift"><span class="hs-identifier hs-var">mapLift</span></a></span><span> </span><span id="local-6989586621679085708"><span class="annot"><span class="annottext">f a -&gt; g a
</span><a href="#local-6989586621679085708"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085707"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085707"><span class="hs-identifier hs-var">e</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">g a -&gt; Lift g a
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">f a -&gt; g a
</span><a href="#local-6989586621679085708"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085707"><span class="hs-identifier hs-var">e</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-119"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#mapLift"><span class="hs-pragma hs-type">mapLift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-120"></span><span>
</span><span id="line-121"></span><span class="hs-comment">-- | Eliminator for 'Lift'.</span><span>
</span><span id="line-122"></span><span class="hs-comment">--</span><span>
</span><span id="line-123"></span><span class="hs-comment">-- * @'elimLift' f g . 'pure' = f@</span><span>
</span><span id="line-124"></span><span class="hs-comment">--</span><span>
</span><span id="line-125"></span><span class="hs-comment">-- * @'elimLift' f g . 'Other' = g@</span><span>
</span><span id="line-126"></span><span class="hs-comment">--</span><span>
</span><span id="line-127"></span><span id="local-6989586621679086084"><span id="local-6989586621679086085"><span id="local-6989586621679086086"><span class="annot"><a href="Control.Applicative.Lift.html#elimLift"><span class="hs-identifier hs-type">elimLift</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679086086"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679086085"><span class="hs-identifier hs-type">r</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621679086084"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086086"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679086085"><span class="hs-identifier hs-type">r</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086084"><span class="hs-identifier hs-type">f</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086086"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679086085"><span class="hs-identifier hs-type">r</span></a></span></span></span></span><span>
</span><span id="line-128"></span><span id="elimLift"><span class="annot"><span class="annottext">elimLift :: forall a r (f :: * -&gt; *). (a -&gt; r) -&gt; (f a -&gt; r) -&gt; Lift f a -&gt; r
</span><a href="Control.Applicative.Lift.html#elimLift"><span class="hs-identifier hs-var hs-var">elimLift</span></a></span></span><span> </span><span id="local-6989586621679085706"><span class="annot"><span class="annottext">a -&gt; r
</span><a href="#local-6989586621679085706"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="annot"><span class="annottext">f a -&gt; r
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085705"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085705"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; r
</span><a href="#local-6989586621679085706"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085705"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-129"></span><span class="annot"><a href="Control.Applicative.Lift.html#elimLift"><span class="hs-identifier hs-var">elimLift</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; r
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679085704"><span class="annot"><span class="annottext">f a -&gt; r
</span><a href="#local-6989586621679085704"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span id="local-6989586621679085703"><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085703"><span class="hs-identifier hs-var">e</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">f a -&gt; r
</span><a href="#local-6989586621679085704"><span class="hs-identifier hs-var">g</span></a></span><span> </span><span class="annot"><span class="annottext">f a
</span><a href="#local-6989586621679085703"><span class="hs-identifier hs-var">e</span></a></span><span>
</span><span id="line-130"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#elimLift"><span class="hs-pragma hs-type">elimLift</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-131"></span><span>
</span><span id="line-132"></span><span class="hs-comment">-- | An applicative functor that collects a monoid (e.g. lists) of errors.</span><span>
</span><span id="line-133"></span><span class="hs-comment">-- A sequence of computations fails if any of its components do, but</span><span>
</span><span id="line-134"></span><span class="hs-comment">-- unlike monads made with 'ExceptT' from &quot;Control.Monad.Trans.Except&quot;,</span><span>
</span><span id="line-135"></span><span class="hs-comment">-- these computations continue after an error, collecting all the errors.</span><span>
</span><span id="line-136"></span><span class="hs-comment">--</span><span>
</span><span id="line-137"></span><span class="hs-comment">-- * @'pure' f '&lt;*&gt;' 'pure' x = 'pure' (f x)@</span><span>
</span><span id="line-138"></span><span class="hs-comment">--</span><span>
</span><span id="line-139"></span><span class="hs-comment">-- * @'pure' f '&lt;*&gt;' 'failure' e = 'failure' e@</span><span>
</span><span id="line-140"></span><span class="hs-comment">--</span><span>
</span><span id="line-141"></span><span class="hs-comment">-- * @'failure' e '&lt;*&gt;' 'pure' x = 'failure' e@</span><span>
</span><span id="line-142"></span><span class="hs-comment">--</span><span>
</span><span id="line-143"></span><span class="hs-comment">-- * @'failure' e1 '&lt;*&gt;' 'failure' e2 = 'failure' (e1 '&lt;&gt;' e2)@</span><span>
</span><span id="line-144"></span><span class="hs-comment">--</span><span>
</span><span id="line-145"></span><span class="hs-keyword">type</span><span> </span><span id="Errors"><span class="annot"><a href="Control.Applicative.Lift.html#Errors"><span class="hs-identifier hs-var">Errors</span></a></span></span><span> </span><span id="local-6989586621679085702"><span class="annot"><a href="#local-6989586621679085702"><span class="hs-identifier hs-type">e</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Lift"><span class="hs-identifier hs-type">Lift</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Functor.Constant.html#Constant"><span class="hs-identifier hs-type">Constant</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679085702"><span class="hs-identifier hs-type">e</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-146"></span><span>
</span><span id="line-147"></span><span class="hs-comment">-- | Extractor for computations with accumulating errors.</span><span>
</span><span id="line-148"></span><span class="hs-comment">--</span><span>
</span><span id="line-149"></span><span class="hs-comment">-- * @'runErrors' ('pure' x) = 'Right' x@</span><span>
</span><span id="line-150"></span><span class="hs-comment">--</span><span>
</span><span id="line-151"></span><span class="hs-comment">-- * @'runErrors' ('failure' e) = 'Left' e@</span><span>
</span><span id="line-152"></span><span class="hs-comment">--</span><span>
</span><span id="line-153"></span><span id="local-6989586621679086079"><span id="local-6989586621679086080"><span class="annot"><a href="Control.Applicative.Lift.html#runErrors"><span class="hs-identifier hs-type">runErrors</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Errors"><span class="hs-identifier hs-type">Errors</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086080"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086079"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/Data.Either.html#Either"><span class="hs-identifier hs-type">Either</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086080"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086079"><span class="hs-identifier hs-type">a</span></a></span></span></span><span>
</span><span id="line-154"></span><span id="runErrors"><span class="annot"><span class="annottext">runErrors :: forall e a. Errors e a -&gt; Either e a
</span><a href="Control.Applicative.Lift.html#runErrors"><span class="hs-identifier hs-var hs-var">runErrors</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-type">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Functor.Constant.html#Constant"><span class="hs-identifier hs-type">Constant</span></a></span><span> </span><span id="local-6989586621679085700"><span class="annot"><span class="annottext">e
</span><a href="#local-6989586621679085700"><span class="hs-identifier hs-var">e</span></a></span></span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">e -&gt; Either e a
forall a b. a -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Left"><span class="hs-identifier hs-var">Left</span></a></span><span> </span><span class="annot"><span class="annottext">e
</span><a href="#local-6989586621679085700"><span class="hs-identifier hs-var">e</span></a></span><span>
</span><span id="line-155"></span><span class="annot"><a href="Control.Applicative.Lift.html#runErrors"><span class="hs-identifier hs-var">runErrors</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-type">Pure</span></a></span><span> </span><span id="local-6989586621679085699"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085699"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Either e a
forall a b. b -&gt; Either a b
</span><a href="../../base/src/Data.Either.html#Right"><span class="hs-identifier hs-var">Right</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679085699"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-156"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#runErrors"><span class="hs-pragma hs-type">runErrors</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-157"></span><span>
</span><span id="line-158"></span><span class="hs-comment">-- | Report an error.</span><span>
</span><span id="line-159"></span><span id="local-6989586621679086071"><span id="local-6989586621679086072"><span class="annot"><a href="Control.Applicative.Lift.html#failure"><span class="hs-identifier hs-type">failure</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679086072"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Errors"><span class="hs-identifier hs-type">Errors</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086072"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086071"><span class="hs-identifier hs-type">a</span></a></span></span></span><span>
</span><span id="line-160"></span><span id="failure"><span class="annot"><span class="annottext">failure :: forall e a. e -&gt; Errors e a
</span><a href="Control.Applicative.Lift.html#failure"><span class="hs-identifier hs-var hs-var">failure</span></a></span></span><span> </span><span id="local-6989586621679085698"><span class="annot"><span class="annottext">e
</span><a href="#local-6989586621679085698"><span class="hs-identifier hs-var">e</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Constant e a -&gt; Lift (Constant e) a
forall (f :: * -&gt; *) a. f a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Other"><span class="hs-identifier hs-var">Other</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">e -&gt; Constant e a
forall {k} a (b :: k). a -&gt; Constant a b
</span><a href="Data.Functor.Constant.html#Constant"><span class="hs-identifier hs-var">Constant</span></a></span><span> </span><span class="annot"><span class="annottext">e
</span><a href="#local-6989586621679085698"><span class="hs-identifier hs-var">e</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-161"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#failure"><span class="hs-pragma hs-type">failure</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-162"></span><span>
</span><span id="line-163"></span><span class="hs-comment">-- | Convert from 'Either' to 'Errors' (inverse of 'runErrors').</span><span>
</span><span id="line-164"></span><span id="local-6989586621679086064"><span id="local-6989586621679086065"><span class="annot"><a href="Control.Applicative.Lift.html#eitherToErrors"><span class="hs-identifier hs-type">eitherToErrors</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Data.Either.html#Either"><span class="hs-identifier hs-type">Either</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086065"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086064"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Control.Applicative.Lift.html#Errors"><span class="hs-identifier hs-type">Errors</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086065"><span class="hs-identifier hs-type">e</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679086064"><span class="hs-identifier hs-type">a</span></a></span></span></span><span>
</span><span id="line-165"></span><span id="eitherToErrors"><span class="annot"><span class="annottext">eitherToErrors :: forall e a. Either e a -&gt; Errors e a
</span><a href="Control.Applicative.Lift.html#eitherToErrors"><span class="hs-identifier hs-var hs-var">eitherToErrors</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(e -&gt; Errors e a) -&gt; (a -&gt; Errors e a) -&gt; Either e a -&gt; Errors e a
forall a c b. (a -&gt; c) -&gt; (b -&gt; c) -&gt; Either a b -&gt; c
</span><a href="../../base/src/Data.Either.html#either"><span class="hs-identifier hs-var">either</span></a></span><span> </span><span class="annot"><span class="annottext">e -&gt; Errors e a
forall e a. e -&gt; Errors e a
</span><a href="Control.Applicative.Lift.html#failure"><span class="hs-identifier hs-var">failure</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; Errors e a
forall (f :: * -&gt; *) a. a -&gt; Lift f a
</span><a href="Control.Applicative.Lift.html#Pure"><span class="hs-identifier hs-var">Pure</span></a></span><span>
</span><span id="line-166"></span></pre></body></html>